/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package controllers;

import play.mvc.Controller;
import play.mvc.With;

/**
 *
 * @author Administrador
 */
@With(Secure.class)
public class firstController extends Controller{
    
    static String username;
    static String periodo;
    
    public static void dispatcher(){
        
        username=Security.connected();
        session.clear();
        
        periodo="2011-I";
            
        String controler;
        
        if(username.equals("000000")){controler="dptoAcademico.jefeDptoAcademico";
        }else{if(username.equals("999999")){controler="AperturarCiclo.index";
        }else{controler="disponibilidadHoraria.disponibilidad";}}
        
        redirect(controler);

    }
    
}
